report_square_matrix_error Subroutine

public subroutine report_square_matrix_error(fcn, err, name, expectedSize, actualRows, actualCols)

Reports an error where a square matrix was expected but a non-square matrix was provided.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: fcn

The name of the function that failed.

class(errors), intent(inout) :: err

The error object to be updated.

character(len=*), intent(in) :: name

The name of the matrix.

integer(kind=int32), intent(in) :: expectedSize

The expected size of the square matrix.

integer(kind=int32), intent(in) :: actualRows

The actual number of rows in the matrix.

integer(kind=int32), intent(in) :: actualCols

The actual number of columns in the matrix.


Variables

Type Visibility Attributes Name Initial
character(len=256), public :: msg